{include file="public/head"/}
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">邮件服务</div>
                <div class="layui-card-body">
                    <div class="layui-form" wid100 lay-filter="form">
                        <div class="layui-form-item">
                            <label class="layui-form-label">SMTP服务器</label>
                            <div class="layui-input-inline">
                                <input type="text" name="smtp_server" class="layui-input">
                            </div>
                            <div class="layui-form-mid layui-word-aux">如：smtp.163.com</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">SMTP端口号</label>
                            <div class="layui-input-inline" style="width: 80px;">
                                <input type="text" name="smtp_port" lay-verify="number" class="layui-input">
                            </div>
                            <div class="layui-form-mid layui-word-aux">一般为 25 或 465</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">发件人邮箱</label>
                            <div class="layui-input-inline">
                                <input type="text" name="smtp_user" lay-verify="email" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">身份验证码</label>
                            <div class="layui-input-inline">
                                <input type="password" name="smtp_pwd" lay-verify="required" placeholder="SMTP身份验证码" class="layui-input">
                            </div>
                        </div>


                        <div class="layui-form-item">
                            <label class="layui-form-label">测试邮箱</label>
                            <div class="layui-input-inline">
                                <input type="text" name="test_eamil" id="test_eamil" placeholder="测试接收邮件地址" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item layui-form-text">
                            <label class="layui-form-label">测试邮件内容</label>
                            <div class="layui-input-block">
                                <textarea name="test_eamil_info" id="test_eamil_info" placeholder="{:lang('pleaseEnter')}测试内容" class="layui-textarea"></textarea>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit lay-filter="set_system_email">确认保存</button>
                                <button class="layui-btn layui-btn-normal" lay-submit lay-filter="trySend">测试发送</button>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/foot"/}
<script>
    layui.config({
        base: '__LAYADMIN__/',version: true
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index','form', 'system'],function(){
        var form = layui.form;
        form.val("form", {$info|raw})
    });
</script>
</body>
</html>